home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_200 / 264_01 / ls.doc < prev    next >
Text File  |  1980-01-01  |  1KB  |  29 lines

  1. LS
  2.  
  3. Purpose
  4. list contents of directory
  5.  
  6. Syntax
  7. ls [-alrstxzAR1] [path...]
  8.  
  9. Comments
  10. Ls provides an informative and versatile display of directories and
  11. files.  It has several output formats.  By default, the entries are
  12. sorted alphabetically by filename; other sortings are available as
  13. options.  In the short (default) listing format the names of
  14. subdirectories are shown followed by a '\'.  Path can be a drive
  15. specifier, a directory, or a filename. 
  16.  
  17. Options
  18. -a      list all files, including hidden and system files, ".", and ".."
  19. -l      long listing format (extra information)
  20. -r      reverse the order of sorting
  21. -s      display size of each file in kilobytes, and total for each directory
  22. -t      sort by time/date (latest first)
  23. -x      sort by extension
  24. -z      sort by size
  25. -A      list all files except "." and ".."
  26. -R      list subdirectories recursively
  27. -1      display 1 entry per line of short format
  28.  
  29.